/**
 * 作者: hxl
 * 日期: 2025-02-12 11:20:08
 * 备注: 冲榜总表
 */
package com.motu.monstercity.server.game.commondata.act;

import io.vertx.core.json.JsonObject;

public class ActTopRankingModel {
    protected int id; // 事件ID
    protected int topId; // 冲榜模板id
    protected int type; // 类型
    protected int reward; // 奖励模版 (填写rank_reward.csv中的rank_type)
    protected String iapId; // 礼包
    protected int list; // 上榜排名
    protected int wordTitle; // 邮件标题
    protected int wordContent; // 邮件内容

    public ActTopRankingModel() {
    }

    public ActTopRankingModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        topId = obj.containsKey("top_id") ? obj.getInteger("top_id") : 0;
        type = obj.containsKey("type") ? obj.getInteger("type") : 0;
        reward = obj.containsKey("reward") ? obj.getInteger("reward") : 0;
        iapId = obj.containsKey("iap_id") ? obj.getString("iap_id") : "";
        list = obj.containsKey("list") ? obj.getInteger("list") : 0;
        wordTitle = obj.containsKey("word_title") ? obj.getInteger("word_title") : 0;
        wordContent = obj.containsKey("word_content") ? obj.getInteger("word_content") : 0;
    }

    public int getId() {
        return id;
    }

    public int getTopId() {
        return topId;
    }

    public int getType() {
        return type;
    }

    public int getReward() {
        return reward;
    }

    public String getIapId() {
        return iapId;
    }

    public int getList() {
        return list;
    }
    public int getWordTitle() {
        return wordTitle;
    }

    public int getWordContent() {
        return wordContent;
    }

}
